home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_plotutils.idb / usr / freeware / bin / plotfont.z / plotfont
Encoding:
Text File  |  1998-10-28  |  4.0 KB  |  91 lines

  1. #! /bin/sh
  2.  
  3. # plotfont - temporary wrapper script for .libs/plotfont
  4. # Generated by ltmain.sh - GNU libtool 1.2
  5. #
  6. # The plotfont program cannot be directly executed until all the libtool
  7. # libraries that it depends on are installed.
  8. #
  9. # This wrapper script should never be moved out of `/xlv1/freeware/1998.Oct/plotutils/2.1.4/plotutils-2.1.4.diffbuild/plotfont'.
  10. # If it is, it will not operate correctly.
  11.  
  12. # Sed substitution that helps us do robust quoting.  It backslashifies
  13. # metacharacters that are still active within double-quoted strings.
  14. Xsed='sed -e s/^X//'
  15. sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  16.  
  17. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18. # if CDPATH is set.
  19. if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
  20.  
  21. # This environment variable determines our operation mode.
  22. if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
  23.   # install mode needs the following variables:
  24.   link_against_libtool_libs=' ../libplot/libplot.la'
  25.   finalize_command="sgifwcompile -e -nostdinc -I. -I/hosts/babylon.engr/usr/dist/new_toolroots/6.2/products/freeware/latest/proot/usr/include -D_BSD_SIGNALS -O3 -OPT:Olimit=0:space=ON -n32 -mips3 -nostdlib -L/hosts/babylon.engr/usr/dist/new_toolroots/6.2/products/freeware/latest/proot/usr/lib32 -woff 1009,1014,1048,1110,1116,1185,1188,1204,1230,1233 -Wl,-woff,85,-woff,84 -- /hosts/babylon.engr/usr/dist/new_toolroots/6.2/products/freeware/latest/ptoolroot/usr/bin/cc -O -n32 -mips3 -nostdlib -L/hosts/babylon.engr/usr/dist/new_toolroots/6.2/products/freeware/latest/proot/usr/lib32 -woff 1009,1014,1048,1110,1116,1185,1188,1204,1230,1233 -Wl,-woff,85,-woff,84 -o .libs/plotfontT plotfont.o ../lib/libcommon.a ../lib/libfontlist.a -Wl,-rpath -Wl,/usr/freeware/lib32 -L/usr/freeware/lib32 -lplot -L/hosts/babylon.engr/usr/dist/new_toolroots/6.2/products/freeware/latest/proot/usr/lib32 -L/hosts/babylon.engr/usr/dist/new_toolroots/6.2/products/freeware/latest/proot/usr/lib32 -lmx -lc -lgen -lc -lPW -L/hosts/babylon.engr/usr/dist/new_toolroots/6.2/products/freeware/latest/proot/usr/lib32 -lXm -lXt -lSM -lICE -lXext -lX11 -lmx -lc -lgen -lc -lPW"
  26. else
  27.   # When we are sourced in execute mode, $file and $echo are already set.
  28.   if test "$libtool_execute_magic" = "%%%MAGIC variable%%%"; then :
  29.   else
  30.     echo="printf %s\\n"
  31.     file="$0"
  32.   fi
  33.  
  34.   # Find the directory that this script lives in.
  35.   thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  36.   test "x$thisdir" = "x$file" && thisdir=.
  37.  
  38.   # Follow symbolic links until we get to the real thisdir.
  39.   file=`ls -ld "$file" | sed -n 's/.*-> //p'`
  40.   while test -n "$file"; do
  41.     destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  42.  
  43.     # If there was a directory component, then change thisdir.
  44.     if test "x$destdir" != "x$file"; then
  45.       case "$destdir" in
  46.       /* | [A-Za-z]:\*) thisdir="$destdir" ;;
  47.       *) thisdir="$thisdir/$destdir" ;;
  48.       esac
  49.     fi
  50.  
  51.     file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52.     file=`ls -ld "$thisdir/$file" | sed -n 's/.*-> //p'`
  53.   done
  54.  
  55.   # Try to get the absolute directory name.
  56.   absdir=`cd "$thisdir" && pwd`
  57.   test -n "$absdir" && thisdir="$absdir"
  58.  
  59.   progdir="$thisdir/.libs"
  60.   program='plotfont'
  61.  
  62.   if test -f "$progdir/$program"; then
  63.     # Add our own library path to LD_LIBRARY_PATH
  64.     LD_LIBRARY_PATH="$thisdir/../libplot/.libs:$LD_LIBRARY_PATH"
  65.  
  66.     # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
  67.     LD_LIBRARY_PATH=`$echo "X$LD_LIBRARY_PATH" | $Xsed -e 's/:*$//'`
  68.  
  69.     export LD_LIBRARY_PATH
  70.  
  71.     if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  72.       # Run the actual program with our arguments.
  73.  
  74.       # Export the path to the program.
  75.       PATH="$progdir:$PATH"
  76.       export PATH
  77.  
  78.       exec $program ${1+"$@"}
  79.  
  80.       $echo "$0: cannot exec $program ${1+"$@"}"
  81.       exit 1
  82.     fi
  83.   else
  84.     # The program doesn't exist.
  85.     $echo "$0: error: $progdir/$program does not exist" 1>&2
  86.     $echo "This script is just a wrapper for $program." 1>&2
  87.     echo "See the libtool documentation for more information." 1>&2
  88.     exit 1
  89.   fi
  90. fi
  91.